//package com.amumu.drama.portal.modules.invitation.controller;
//
//import com.amumu.drama.common.api.CommonResult;
//import com.amumu.drama.common.modules.invitation.dto.NewMemberDto;
//import com.amumu.drama.common.modules.invitation.service.InvitationNewMemberService;
//import com.amumu.drama.portal.service.AuthService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.validation.Valid;
//
//@RestController
//@Api(tags = "用户邀请码")
//@RequestMapping("/api/v1/invitationMember")
//public class InvitationNewMemberController {
//
//    @Autowired
//    private InvitationNewMemberService invitationNewMemberService;
//    @Autowired
//    private AuthService authService;
//
//    @ApiOperation("微丸子-创建用户邀请码")
//    @PostMapping("/createMemberCode")
//    public CommonResult<String> generateInvitationAnchorCode(@Valid @RequestBody NewMemberDto newMemberDto) {
//        return invitationNewMemberService.generateInvitationNewMemberCode(newMemberDto, String.valueOf(authService.getCurrentMember().getId()));
//    }
//
//    @ApiOperation("微丸子-用户邀请码校验")
//    @GetMapping("/validateCode")
//    public CommonResult<String> validateCode(@RequestParam String invitationCode) {
//        return invitationNewMemberService.validateCode(invitationCode);
//    }
//}
